/** 
* All Rights Reserved , Copyright (C) 2023 , 青岛鼎信通讯股份有限公司
* 
* CjCompareJobResultServiceAuto
* 文件对比结果
* 
* 修改纪录
* 2023-02-21 版本：1.0 zhanglongfei 创建。
* @version 版本：1.0
* @author 作者：zhanglongfei
* 创建日期：2023-02-21
*/

package com.topscomm.mis.cbb.file.compare.cj.service.impl.auto;

import javax.annotation.Resource;
import com.topscomm.basic.IBasicDao;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import com.topscomm.mis.cbb.file.compare.cj.*;
import com.topscomm.mis.cbb.file.compare.cj.pojo.CjCompareJobResultEntity;
import com.topscomm.mis.cbb.file.compare.cj.dao.ICjCompareJobResultDao;


public class CjCompareJobResultServiceAuto extends CjService<CjCompareJobResultEntity,ICjCompareJobResultDao> {
	
	/**
	 * @author: zhanglongfei
	 * @date: 2023-02-21
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("difftype") != null) {
			temp = mapRow.get("difftype").toString();
			mapRow.put("dispdifftype", datacodeCache.getValueDynamic("CjCompareJobResultDiffType", temp, "code", "name"));
		}
		if (mapRow.get("checkstate") != null) {
			temp = mapRow.get("checkstate").toString();
			mapRow.put("dispcheckstate", datacodeCache.getValueDynamic("CjCompareJobResultCheckState", temp, "code", "name"));
		}
		if (mapRow.get("enabled") != null) {
			temp = mapRow.get("enabled").toString();
			mapRow.put("dispenabled", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}
	}

	@Override
	@Resource(name = "cjCompareJobResultDao")
	public void setDao(IBasicDao<CjCompareJobResultEntity> dao) {		
		super.setDao(dao);
	}
}
